import { BaseEntity } from '../../base/entity/base';
import { Column, Entity } from 'typeorm';

/**
 * 店家信息
 */
@Entity('store_store')
export class StoreStoreEntity extends BaseEntity {
  @Column({ comment: '店铺名称' })
  storeName: string;

  @Column({ comment: '店铺地址', nullable: true })
  storeAddress: string;

  @Column({ comment: '负责人姓名', nullable: true })
  contactName: string;

  @Column({ comment: '联系电话', nullable: true })
  contactPhone: string;

  @Column({ comment: '收款码图片', nullable: true })
  qrCode: string;

  @Column({ comment: '微信支付商户号', nullable: true })
  wxPayMchId: string;

  @Column({ comment: '账户余额', type: 'decimal', precision: 10, scale: 2, default: 0 })
  balance: number;

  @Column({ comment: '代理ID', nullable: true })
  agentId: number;
}